﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;

namespace chihuopig.Web.verfiy
{
    public class ArticleWriterVerfiy
    {
        [MaxLength(100, ErrorMessage = "标题最大长度100")]
        [Required(ErrorMessage = "标题不能为空")]
        public string Title { get; set; }

      
        [Required(ErrorMessage = "封面图片不能为空")]
        public string Imgsrc { get; set; }

  
        [Required(ErrorMessage = "作者不能为空")]
        public long WriterId { get; set; }

    
        [Required(ErrorMessage = "内容不能为空")]
        public string Centonet { get; set; }

        public long Id { get; set; }

        public string Html { get; set; }
    }
}
